<div class="span10">
	<?=$system_message;?>
	<?=validation_errors() !== '' ? '<div class="alert alert-error">'.validation_errors().'</div>' : NULL;?>
	<fieldset>
		<legend>Payroll Settings</legend>
	
		<form class="form form-horizontal well" action="<?=site_url('payroll/settings');?>" method="POST">
			<fieldset>
			<legend>Computation Settings</legend>
			
			<div class="control-group" style="background:#C97472;">
				<span class="label label-important">Not yet functional</span>
				<label class="control-label" for="inputEmail">Payroll Computation</label>
				<td style="text-align:center;">
					<div class="controls">
						<ul>
							<li><span class="label label-info"><input type="radio" name="input-type">  Monthly</span></li>
							<li><span class="label label-info"><input type="radio" name="input-type">  Semi Monthly</span></li>
							<li></li>
						</ul>
					</div>
				</td>
			</div>
			
			<div class="control-group">
				<label class="control-label" for="inputEmail">Work Days in a Month</label>
				<div class="controls">
					<input type="text" name="wdim" class="span3" value="<?=set_value('wdim',$ps->wdim);?>" maxlength="2">
					<a href="#" title="Standard Working days in a Month"><i class="icon-question-sign"></i></a>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="inputEmail">Work Hours Per Day</label>
				<div class="controls">
					<input type="text" name="whpd" value="<?=set_value('whpd',$ps->whpd);?>"class="span3" maxlength="2">
					<a href="#" title="Standard Working Hours Per Day"><i class="icon-question-sign"></i></a>
				</div>
			</div>
						
			<div class="control-group">
				<label class="control-label" for="inputEmail">Minutes to start before calculating Overtime</label>
				<td style="text-align:center;">
					<div class="controls">
					<input type="text" name="overtime" value="<?=set_value('overtime',$ps->overtime);?>" class="span3" maxlength="2">
					<a href="#" title="Minutes to start calculating the overtime, when standard time out has passed. This will be used to when to start the calculation of overtime"><i class="icon-question-sign"></i></a>
					</div>
					
				</td>
			</div>
			<div class="control-group">
				<label class="control-label" for="inputEmail">Minimum Wage Rate</label>
				<td style="text-align:center;">
					<div class="controls">
					<input type="text" name="mwr" value="<?=set_value('mwr',$ps->mwr);?>" class="span3" maxlength="7">
					<a href="#" title="This will be used for the calculation of Overtime rates"><i class="icon-question-sign"></i></a>
					</div>
					
				</td>
			</div>
			</fieldset>
			
			
			
			<fieldset>
			<legend>Set Time In and Out</legend>
			<div class="control-group">
				<label class="control-label" for="inputEmail"><span class="label label-info">IN - AM</span></label>
				<td style="text-align:center;">
					<div class="controls">
						<div class="input-append bootstrap-timepicker">
							<input type="text" name="stiam" value="<?=set_value('stiam',$ps->stiam);?>" class="timepicker1 input-small">
							<span class="add-on"><i class="icon-time"></i></span>
						</div>
						<a href="#" title="Stanard Time Out in the afternoon"><i class="icon-question-sign"></i></a>
					</div>
				</td>
			</div>
			
			<div class="control-group">
				<label class="control-label" for="inputEmail"><span class="label label-info">OUT AM</span></label>
				<td style="text-align:center;">
					<div class="controls">
						<div class="input-append bootstrap-timepicker">
							<input type="text" name="stoam" value="<?=set_value('stoam',$ps->stoam);?>" class="timepicker1 input-small">
							<span class="add-on"><i class="icon-time"></i></span>
						</div>
						<a href="#" title="Stanard Time Out in the afternoon"><i class="icon-question-sign"></i></a>
					</div>
				</td>
			</div>
			<div class="control-group">
				<label class="control-label" for="inputEmail"><span class="label label-info">IN PM</span></label>
				<td style="text-align:center;">
					<div class="controls">
						<div class="input-append bootstrap-timepicker">
							<input type="text" name="stipm" value="<?=set_value('stipm',$ps->stipm);?>" class="timepicker1 input-small">
							<span class="add-on"><i class="icon-time"></i></span>
						</div>
						<a href="#" title="Stanard Time Out in the afternoon"><i class="icon-question-sign"></i></a>
					</div>
				</td>
			</div>
			
			
			<div class="control-group">
				<label class="control-label" for="inputEmail"><span class="label label-info">OUT PM</span></label>
				<td style="text-align:center;">
					<div class="controls">
						<div class="input-append bootstrap-timepicker">
							<input type="text" name="stopm" value="<?=set_value('stopm',$ps->stopm);?>" class="timepicker1 input-small">
							<span class="add-on"><i class="icon-time"></i></span>
						</div>
						<a href="#" title="Stanard Time Out in the afternoon"><i class="icon-question-sign"></i></a>
					</div>
				</td>
			</div>
			</fieldset>
			
			
			
			
			
			
			<div class="control-group">
				<label class="control-label" for="inputEmail"></label>
				<div class="controls">
					<input type="submit" value="Save Settings" name="apply_settings" class="btn btn-primary">
				</div>
			</div>
		</form>
	</fieldset>
</div>